<?php

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    //admin router
    '[trade]' =>[
        'login' => [ 'admin/login/index' , [ 'method'=>'get' ] ],
        'logout' => [ 'admin/login/logout' , [ 'method'=>'get' ] ],
        'user/add' => [ 'admin/users/add' , [ 'method'=>'get' ] ],
        'user/edit' => [ 'admin/users/edit' , [ 'method'=>'get' ] ],
        'user/allot' => [ 'admin/users/allot' , [ 'method'=>'get' ] ],
        'user/custom_edit' => [ 'admin/users/allot_edit' , [ 'method'=>'get' ] ],
        'user/custom' => [ 'admin/users/custom' , [ 'method'=>'get' ] ],
        'user' => [ 'admin/users/entry' , [ 'method'=>'get' ] ],

        //客户信息
        'custom' => [ 'admin/customs/index' , [ 'method'=>'get' ] ],
        //客户资金实时
        'coin' => 'admin/coin/index' ,
        //客户资金往来
        'comego' => [ 'admin/comego/index' , [ 'method'=>'get' ] ],
        //持仓查询
        'hold' => [ 'admin/hold/index' , [ 'method'=>'get' ] ],
        //成交查询
        'deal' => [ 'admin/deal/index' , [ 'method'=>'get' ] ],
        //委托查询
        'entrust' => [ 'admin/entrust/index' , [ 'method'=>'get' ] ],

        ''     => ['admin/index/index',  [ 'method'=>'get' ] ]
    ],
    '[api]'=>[
        'login_check'=>[ 'admin/UserApi/check' , [ 'method'=>'post' ]  ],
        'add_user'=>[ 'admin/UserApi/add_user' ,[ 'method'=>'post'] ] ,
        'add_custom'=>[ 'admin/UserApi/add_custom' ,[ 'method'=>'post'] ] ,
        'get_user'=>[ 'admin/UserApi/get_user' ,[ 'method'=>'get'] ] ,
        'get_custom'=>[ 'admin/UserApi/get_custom' ,[ 'method'=>'get'] ] ,
        'delete_user'=>[ 'admin/UserApi/delete_user' ,[ 'method'=>'post'] ] ,
        'delete_custom'=>[ 'admin/UserApi/delete_custom' ,[ 'method'=>'post'] ] ,
        'update_user'=>[ 'admin/UserApi/update_user' ,[ 'method'=>'post'] ] ,
    ],

    //采集数据
    '[getdata]'=>[
        //客户信息查询
        'user'=>[ 'data/user/index' , [ 'method'=>'get' ]  ],
        //资金查询
        'coin'=>[ 'data/coin/index' , [ 'method'=>'get' ]  ],
        //持仓采集
        'hold'=>[ 'data/hold/index' , [ 'method'=>'get' ]  ],
        //成交采集
        'deal'=>[ 'data/deal/index' , [ 'method'=>'get' ]  ],
        //委托查询
        'entrust'=>[ 'data/entrust/index' , [ 'method'=>'get' ]  ],
    ],
];
